/* 搜索区域 */
.search-section {
  position: absolute;
  top: 40px;
  left: 24px; /* 改为左对齐，距离左边24px */
  transform: none; /* 移除居中变换 */
  z-index: 20;
  width: auto; /* 改为自动宽度 */
  max-width: 800px; /* 增加最大宽度 */
  padding: 0;
  box-sizing: border-box;
}

.search-container {
  display: flex;
  max-width: 800px; /* 增加最大宽度 */
  margin: 0; /* 移除自动边距 */
  gap: 12px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 400px; /* 添加最小宽度 */
}

.search-input-wrapper:focus-within {
  border-color: #1890ff;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
  margin-right: 12px;
  color: #999;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 16px 0;
  background: transparent;
}

.search-input::placeholder {
  color: #999;
}

.camera-icon {
  margin-left: 12px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.camera-icon:hover {
  color: #1890ff;
}

.search-btn {
  padding: 16px 32px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(24, 144, 255, 0.3);
}

.search-btn:hover {
  background-color: #40a9ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(24, 144, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-section {
    top: 20px;
    left: 16px; /* 移动端距离左边16px */
    max-width: calc(100% - 32px); /* 确保不超出屏幕 */
  }
  
  .search-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .search-input-wrapper {
    min-width: auto; /* 移动端移除最小宽度限制 */
  }
  
  .search-btn {
    width: 100%;
  }
} 